home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_06
/
plauger
/
spsofset.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-04
|
262b
|
12 lines
--------------- Listing 3: The function streampos::offset ---------------
// sposoffset -- streampos::offset()
#include <streambuf>
streamoff streampos::offset() const
{ // get offset
return (_Fp._Off == _BADOFF ? _BADOFF : _Pos + _Fp._Off);
}